home *** CD-ROM | disk | FTP | other *** search
/ Monsters vs. Aliens Press Kit / Monsters vs Aliens.iso / pc / main.dxr / SCRIPTS_87_puppetSound (mouseOver).ls < prev    next >
Encoding:
Text File  |  2009-03-09  |  582 b   |  19 lines

  1. property soundEffect, channelNumber
  2.  
  3. on getPropertyDescriptionList
  4.   description = [:]
  5.   soundList = []
  6.   repeat with i = 1 to the number of castMembers
  7.     if member(i, 0).type = #sound then
  8.       soundList.add(member(i, 0).name)
  9.     end if
  10.   end repeat
  11.   addProp(description, #soundEffect, [#default: EMPTY, #format: #string, #comment: "play sound:", #range: soundList])
  12.   addProp(description, #channelNumber, [#default: 3, #format: #integer, #comment: "sound channel:", #range: [1, 2, 3]])
  13.   return description
  14. end
  15.  
  16. on mouseEnter me
  17.   puppetSound(soundEffect, channelNumber)
  18. end
  19.